# -*- encoding: utf-8 -*-
# @Time       :  19:47
# @Author     : yuxian
# @Email      : 1503889663@qq.com
# @File       : urls.py
# @SoftWare   : PyCharm
from rest_framework.routers import DefaultRouter
from variant_character.views import SimilarCharacterViewSet
from django.urls import path

urlpatterns = [
    path('get_columns/', SimilarCharacterViewSet.as_view({'get': 'get_all_columns'})),
    path('children/<pk>/', SimilarCharacterViewSet.as_view({'get': 'get_childrenOrparent'})),
]

router = DefaultRouter()
router.register('similarcharacter', SimilarCharacterViewSet)
urlpatterns += router.urls
